package com.example.demo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.demo.pojo.Staff;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.vo.ResultVO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sjy
 * @since 2025-05-25
 */
public interface StaffService extends IService<Staff> {

    ResultVO<Staff> staffLogin(Staff staff);
    //查询员工信息
    ResultVO<IPage<Staff>> queryStaff(String account,String name,Integer state,Integer pageNum, Integer pageSize) throws Exception;
    //更改员工账号的状态信息
    ResultVO<Staff> updateStaffState(Integer id,Integer state) throws Exception;
    //新增员工
    ResultVO<Staff> addStaff(Staff staff) throws Exception;
}
